<?php

class BaseClass
{

    public function __construct()
    {

        echo 'baseclass:construct....';
    }

    public function test()
    {
        echo "BaseClass::test() called\n";

    }

    public function moreTesting()
    {
        echo "BaseClass::moreTesting() called\n";
    }


}

class ChildClass extends BaseClass
{

    public function __construct()
    {
        echo '<br/>';
        echo 'childclass: construct....';
    }

    public function moreTesting()
    {
        echo '<br/>';
        echo "ChildClass::moreTesting() called";
    }
}

$children = new ChildClass();
$children->moreTesting();


